const mongoose = require("mongoose")

const Notify = new mongoose.Schema({
    from_id:{
        type:String,
        required:true,
        select:true
    },
    to_id:{
        type:String,
        required:true,
        select:true
    },
    from_name:{
        type:String,
        required:true,
        select:true
    },
    from_avatar:{
        type:String,
        required:true,
        select:true
    },
    type:{
        type:String,
        required:true,
        select:true
    },
    group_id:{
        type:String,
        select:true,
        default:""
    },
    is_accept:{
        type:Number,
        default:0,
        select:true
    }
})

module.exports = mongoose.model("notify",Notify,"notify")